require 'das_log'
include DasLog

class DasLogController < ActionController::Base
  self.template_root = File.join(RAILS_ROOT, 'vendor/plugins/das_log/views')

	def index
		@logs = log_list.unshift("")
	end
	
	def show
		contents = read_log(params[:log])
		render :text => contents
	end
	
	def destroy
		clear_log(params[:log])
		render :nothing => true
	end
	
end